﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using LIM.controller;

namespace LIM.forms
{
    public partial class uc_NhatKyLienLac : BaseUserControl
    {
        public uc_NhatKyLienLac()
        {
            InitializeComponent();                        
        }

        public int RowIDKhachHang { set; get; }
        public int RowIDLienHe { set; get; }
        public string ChuDe { set; get; }

        CRM_NhatKyLienLacController CRM_NhatKyLienLacController = new CRM_NhatKyLienLacController();

        private void uc_NhatKyLienLac_Load(object sender, EventArgs e)
        {
            //LoadData();
        }

        void LoadData()
        {
            this.radGridView_NhatKyLienLac.DataSource = CRM_NhatKyLienLacController.LoadNhatKyLienHe(RowIDKhachHang, RowIDLienHe, ChuDe);
        }

        private void radMenuItem_Refresh_Click(object sender, EventArgs e)
        {
            LoadData();
        }        
        
    }
}
